powered by
Adjacency matrix of a Bayesian network.
bnmat(dag)
Adjacency matrix of a Bayesian network is extracted.
A BN object, an object of class "bn".
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
The function is called from the "bnlearn" package which invokes the "Rgraphviz" package from Bioconductor and you need to install it first.
pchc, mmhc, fedhc
# \donttest{ x <- matrix( rnorm(200 * 10, 1, 10), nrow = 200 ) a <- pchc::pchc(x) pchc::bnmat(a$dag) # }
Run the code above in your browser using DataLab